package com.vipboot.framework.core.context;


public class UserContext {

    public static final String UserIdKey = "UserId";
    public static final String TenantIdKey = "TenantId";
    public static final String UserNameKEy = "UserName";
    public static final String DeptNameKey = "DeptName";

    public static String getUserId() {
        return ThreadContextMap.get(UserIdKey);
    }

    public static void setUserId(String userId) {
        ThreadContextMap.put(UserIdKey, userId);
    }

    public static String getTenantId() {
        return ThreadContextMap.get(TenantIdKey);
    }

    public static void setTenantId(String tenantId) {
        ThreadContextMap.put(TenantIdKey, tenantId);
    }

    public static String getUsername() {
        return ThreadContextMap.get(UserNameKEy);
    }

    public static void setUsername(String username) {
        ThreadContextMap.put(UserNameKEy, username);
    }

    public static String getDeptName() {
        return ThreadContextMap.get(DeptNameKey);
    }

    public static void setDeptName(String deptName) {
        ThreadContextMap.put(DeptNameKey, deptName);
    }

}
